package com.jvyou.app.ds.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jvyou.app.ds.domain.entity.QuestionType;
import org.apache.ibatis.annotations.Select;

/**
 * 题目类型表(QuestionType)表数据库访问层
 *
 * @author 橘柚
 * @since 2025-04-20 19:51:26
 */
public interface QuestionTypeMapper extends BaseMapper<QuestionType> {

    @Select("SELECT * FROM ds_question_type ORDER BY RAND() LIMIT 1")
    QuestionType getRandomType();
}
